#pragma once
#include <iostream>
#include <string>
#include <vector>


#define SPACE " "
#define SPACE_LEN strlen(SPACE)
#define SEP "\r\n"
#define SEP_LEN strlen(SEP) // 不能是sizeof！


class Request
{
public:
    std::string Serialize()
    {
        ;
    }

public:
    Request()
    {
        ;
    }
    Request(int x, int y, char op) : _x(x), _y(y), _op(op)
    {
        ;
    }
~Request() {}

public:
    int _x;
    int _y;
    char _op;
};

class Response
{
public:
    Response()
    {

    }
    Response(int result, int code, int x, int y, char op) 
    : _result(result)
    , _code(code)
    , _x(x)
    , _y(y)
    , _op(op)
    {

    }

    bool Recv(int sock, std::string *out)
    {
        ;
    }
    void Send(int sock, const std::string str)
    {
        ;
    }
     std::string Decode(std::string &buffer)
     {
        ;
     }
     std::string Encode(std::string &s)
     {
        ;
     }
private:

        int _result; // 计算结果
        int _code;   // 计算结果的状态码

        int _x;
        int _y;
        char _op;
};